.class Lcom/brixd/niceapp/activity/BaseDetailActivity$30;
.super Ljava/lang/Object;
.source "BaseDetailActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/BaseDetailActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/BaseDetailActivity;

    .prologue
    .line 1220
    iput-object p1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 10
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 1224
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # setter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mClickedView:Landroid/view/View;
    invoke-static {v0, p1}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$1802(Lcom/brixd/niceapp/activity/BaseDetailActivity;Landroid/view/View;)Landroid/view/View;

    .line 1226
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    if-nez v0, :cond_19

    .line 1227
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {}, Lcom/brixd/niceapp/util/SettingUtils;->getSignonFavorHint()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/brixd/niceapp/service/LoginService;->login(Landroid/content/Context;Ljava/lang/String;)V

    .line 1281
    :goto_18
    return-void

    .line 1229
    :cond_19
    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mIsRequesting:Z
    invoke-static {}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$2500()Z

    move-result v0

    if-eqz v0, :cond_26

    .line 1230
    const v0, 0x7f0c00e1

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    goto :goto_18

    .line 1234
    :cond_26
    # getter for: Lcom/brixd/niceapp/activity/BaseDetailActivity;->mIsAbleToRequest:Z
    invoke-static {}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$2800()Z

    move-result v0

    if-nez v0, :cond_33

    .line 1235
    const v0, 0x7f0c0077

    invoke-static {v0}, Lcom/brixd/niceapp/util/ToastUtils;->show(I)V

    goto :goto_18

    .line 1239
    :cond_33
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    # invokes: Lcom/brixd/niceapp/activity/BaseDetailActivity;->prepareRequest()V
    invoke-static {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->access$2900(Lcom/brixd/niceapp/activity/BaseDetailActivity;)V

    .line 1241
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/BaseAppModel;->isFavored()Z

    move-result v0

    if-eqz v0, :cond_72

    .line 1242
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->traceFav()V

    .line 1247
    :goto_47
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v0, v0, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mUserModel:Lcom/brixd/niceapp/model/UserModel;

    invoke-virtual {v0}, Lcom/brixd/niceapp/model/UserModel;->getUid()I

    move-result v0

    invoke-static {v0}, Lcom/brixd/niceapp/util/SecrUtils;->makeToken(I)Lcom/brixd/niceapp/model/Token;

    move-result-object v7

    .line 1248
    .local v7, "token":Lcom/brixd/niceapp/model/Token;
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    iget-object v1, v1, Lcom/brixd/niceapp/activity/BaseDetailActivity;->mAppModel:Lcom/brixd/niceapp/model/BaseAppModel;

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/BaseAppModel;->getId()I

    move-result v1

    invoke-virtual {v7}, Lcom/brixd/niceapp/model/Token;->getTimestamp()J

    move-result-wide v2

    invoke-virtual {v7}, Lcom/brixd/niceapp/model/Token;->getUid()I

    move-result v4

    invoke-virtual {v7}, Lcom/brixd/niceapp/model/Token;->getSecr()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;

    invoke-direct {v6, p0}, Lcom/brixd/niceapp/activity/BaseDetailActivity$30$1;-><init>(Lcom/brixd/niceapp/activity/BaseDetailActivity$30;)V

    invoke-virtual/range {v0 .. v6}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->favApp(IJILjava/lang/String;Lretrofit/Callback;)V

    goto :goto_18

    .line 1244
    .end local v7    # "token":Lcom/brixd/niceapp/model/Token;
    :cond_72
    iget-object v0, p0, Lcom/brixd/niceapp/activity/BaseDetailActivity$30;->this$0:Lcom/brixd/niceapp/activity/BaseDetailActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/BaseDetailActivity;->traceUnFav()V

    goto :goto_47
.end method
